package com.test.shiyan3;

import java.util.Scanner;

public class Czyuan {
    public static void main(String[] args) {
        double r ;
        Scanner sc = new Scanner(System.in);
        System.out.println("请先输入圆形半径：");
        r = sc.nextDouble();
        Yuan y = new Yuan(r);
        double mj = y.mj();
        System.out.println("圆的面积为："+String.format("%.2f",mj));
        double zc = y.zc();
        System.out.println("圆的周长为：" + zc);
    }
}
